<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CRM</title>
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/demo/demo.css">
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/role.js"></script>
</head>
<body>
<table id="role_datagrid" align="center"></table>

<div id="role_toolbar">
    <shiro:hasPermission name="role:saveOrUpdate" >
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'" data-cmd="add">添加</a>
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-edit'" data-cmd="edit">编辑</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="role:delete" >
    <a class="easyui-linkbutton" id="btn_state" data-options="plain:true,iconCls:'icon-remove'" data-cmd="remove">删除</a>
    </shiro:hasPermission>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" data-cmd="reload">刷新</a>
</div>

<div id="role_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="save">添加</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel">取消</a>
</div>

<div id="role_dialog" align="center">
    <form method="post" id="role_form">
        <input type="hidden" name="id">
        <table style="margin-top: 17px" align="center">
            <tr style="height:50px" style="width:200px" >
                <td>
                    角色编号: <input class="easyui-textbox" name="sn" data-options="required:true">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td style="width:200px" >
                    角色名称: <input class="easyui-textbox" name="name" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>
                    <div id="allPermission" ></div>
                </td>
                <td>
                    <div id="selectedPermission" ></div>
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>